<template>
    <button @click="OnClick" style="margin:10px;">{{ "点击次数 : " + clicked_count }}</button>
    <button @click="OnClick" type="primary" style="margin:10px;">{{ "点击次数 : " + clicked_count }}</button>
</template>

<script>
export default {
    data() {
        return {
            clicked_count: 0
        }
    },
    
    beforeMount() {
        console.log("Component - beforeMount");
    },

    methods: {
        OnClick(event) {
            console.log(event)
            this.clicked_count++;
        }
    }
}
</script>